﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.IO;

namespace GranitePackageSystem.Web.GranitePackagingSystem
{
    public class SourceFolder
    {
        public string DisplayName { get; set; }
        public List<SourceFile> Files { get; set; }
        private ObservableCollection<SourceFolder> childSourceFolderValue = new ObservableCollection<SourceFolder>();

        public ObservableCollection<SourceFolder> ChildSourceFolderNodes
        {
            get { try { return childSourceFolderValue; } catch { } return null; }
            set { childSourceFolderValue = value; }
        }

        public SourceFolder() { }
        public SourceFolder(string displayName, List<SourceFile> Files) : this()
        {
            this.DisplayName = displayName;
            this.Files = Files;
        }
    }
}